package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LX
 * @since 2018-09-28
 */
@TableName("erp_receivables_had")
public class ErpReceivablesHad extends Model<ErpReceivablesHad> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 上级id
     */
    private String pid;
    /**
     * 发票号
     */
    private String mid;
    /**
     * 表名
     */
    @TableField("table_name")
    private String tableName;
    /**
     * 已收金额
     */
    private Double money;
    private String attribute1;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getAttribute1() {
        return attribute1;
    }

    public void setAttribute1(String attribute1) {
        this.attribute1 = attribute1;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpReceivablesHad{" +
        ", id=" + id +
        ", pid=" + pid +
        ", mid=" + mid +
        ", tableName=" + tableName +
        ", money=" + money +
        ", attribute1=" + attribute1 +
        "}";
    }
}
